{include file="zp_includetop" /}
<title>您搜索的是{$search_wd}{neq name="search_page" value="1"}第{$search_page}页{/neq} - {$sitename}</title>
<meta name="keywords" content="{notempty name="list_keywords"}{$list_keywords}{else/}最新{$list_name},{$keywords}{/notempty}">
<meta name="description" content="{notempty name="list_description"}{$list_description}{else/}{$description}{/notempty}">
{include file="zp_include" /}
<link href="{$apicss}css/up.min.css" rel="stylesheet">
<style>
.d-searchbox{display: none;}
.uipages {
    overflow: hidden;
    text-align: center;
    margin: 10px 0;
    clear: both;
    text-shadow: none
}
.uipages span.total {
    float: left;
    line-height: 35px;
    color: #555;
    margin-right: 10px
}
.pagination {
    margin-left: 10px;
    display: inline-block
}
.pagination .pagebtn,.pagination .pagego {
    float: left;
    margin-left: 10px;
    margin-top: 5px
}
.pagination>li {
    display: inline
}
.pagination>li>a,.pagination>li>span {
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: #333;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd
}
.pagination>li:first-child>a,.pagination>li:first-child>span {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px
}
.pagination>li:last-child>a,.pagination>li:last-child>span {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px
}
.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover {
    z-index: 3;
    color: #e35000;
    background-color: #eee;
    border-color: #ddd
}
.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover {
    z-index: 2;
    color: #fff;
    cursor: default;
    background-color: #e35000;
    border-color: #e35000
}
.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover {
    color: #777;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #ddd
}
.pagination-lg>li>a,.pagination-lg>li>span {
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.3333333
}
.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px
}
.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px
}
.pagination-sm>li>a,.pagination-sm>li>span {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5
}
.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px
}
.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px
}
</style>
</head>
<body>
{include file="zp_header" /}
<div class="wp clearfix">
    <div class="d-position"><a href="{$siteurl}" title="{$sitename}">首页</a><span>/</span><a class="current" href="{$url_special}">搜索{$search_wd}列表</a></div>
    {php}
    $list_vod = zanpian_mysql_vod('wd:'.$search_wd.';limit:10;field:vod_id,vod_cid,vod_name,vod_letters,vod_pic,vod_director,vod_gold,vod_title,vod_total,vod_actor,vod_mcid,vod_year,vod_addtime,vod_content,vod_continu,vod_area;page:true;p:'.$search_page.';order:vod_addtime desc');
    $list_star = zanpian_mysql_star('name:'.$search_wd.';limit:10;page:true;p:'.$search_page.';order:star_addtime desc');
    $list_news = zanpian_mysql_news('wd:'.$search_wd.';limit:10;page:true;p:'.$search_page.';order:news_addtime desc');
    {/php}
    <div class="filter-s-nav clearfix mt10">
        <span class="fl">搜索<b>{$search_wd}</b>共找到</span>
        <div class="filter-type fl">
            {notempty name="list_vod"}<a id="listvod" href="javascript:;">动漫(<span>{$list_vod.0.page.pagecount}</span>)部</a>{/notempty}
            {notempty name="list_news"}<a href="javascript:;" id="newslist">新闻(<span>{$list_news.0.page.pagecount}</span>)篇</a>{/notempty}
            {notempty name="list_star"}<a href="javascript:;" id="starlist">配音(<span>{$list_star.0.page.pagecount}</span>)位</a>{/notempty}
        </div>
        <span class="fr">搜索<strong>{$search_wd}</strong>共找<strong id="counts">{$list_vod.0.page.pagecount}</strong>个相关内容</span>
    </div>
    <div class="d-search-list">
        {notempty name="list_vod"}
        <div class="d-searchbox" id="listvod">
            <ul class="d-vod-list">
                {volist name="list_vod" id="zanpian"}  
                <li>
                    <a target="_blank" href="{$zanpian.vod_readurl}">
                        <img class="loading" src="{$apicss}skin/img/blank.png" data-original="{$zanpian.vod_picurl}" alt="{$zanpian.vod_name}" />
                        <span class="mask"></span>
                        <span class="text">{neq name="zanpian.vod_continu" value="0"}{$zanpian.vod_title}{else/}{notempty name="zanpian.vod_total"}{$zanpian.vod_total}{else/}{$zanpian.vod_title}{/notempty}{/neq}</span>
                        <span class="score">{$zanpian.vod_gold}</span>
                    </a>
                    <div class="d-info">
                        <h2><a target="_blank" href="{$zanpian.vod_readurl}">{$zanpian.vod_name|get_hilight_ex=$search_wd,'font','red'}</a></h2> 
                        <div class="rating-show-boxs clearfix">
                            <div class="rating-shows">
                                <div class="rating-show-items" style="width:{php}echo($zanpian['vod_gold']*10){/php}%"></div>
                            </div>
                            <div class="rating-show-nums"><span>{$zanpian.vod_gold}</span>分</div>
                        </div>
                        <!-- rating-show-box -->
                        <p class="actor"><em>导演：</em>{$zanpian.vod_director|get_hilight_ex=$search_wd,'font','red'}</p>
                        <p class="actor"><em>主演：</em>{notempty name="zanpian.vod_actor"}{$zanpian.vod_actor|get_hilight_ex=$search_wd,'font','red'}{else/}<span>未知</span>{/notempty}</p>
                        <p class="type fl"><em>类型：</em><a href="{$zanpian.vod_cid|getlistname='list_url'}">{$zanpian.vod_cid|getlistname='list_name'}</a>{$zanpian.vod_mcid|mcat_url=$zanpian['vod_cid']}</p>
                        <p class="type"><em class="long">地区：</em>{$zanpian.vod_area}</p>
                        <p class="type fl"><em>上映：</em>{$zanpian.vod_year}</p><p class="type"><em class="long">更新：</em>{$zanpian.vod_addtime|date='Y-m-d H:i:s',###}</p>
                        <p class="plot"><em>剧情：</em>{$zanpian.vod_content|msubstr=0,110,'...'}<a href="{$zanpian.vod_readurl}" class="more">详细</a></p>
                    </div>
                </li>
                {/volist}
            </ul>
            <div class="uipages pages mt20">
                <ul class="pagination">
                    <span class="total">共{$list_vod.0.page.pagecount}条数据&nbsp;页次:{$list_vod.0.page.currentpage}/{$list_vod.0.page.totalpage}页</span>
                    {$list_vod.0.page.pageurl}
                </ul>
            </div>
        </div>
        {/notempty}
        {notempty name="list_news"}
        <div class="d-searchbox" id="newslist">
            <ul class="d-vodnews">
                {volist name="list_news" id="zanpian"}
                <li>
                    <div class="d-vodnews-picbox fl">
                        <a class="d-vodnews-pic" href="{$zanpian.news_readurl}" title="{$zanpian.news_name}"><img class="loading" src="{$apicss}skin/img/blank.png" data-original="{$zanpian.news_picurl}" alt="{$zanpian.news_name}" /></a>
                        <a class="d-category" href="{$zanpian.list_url}" title="{$zanpian.list_name}">{$zanpian.list_name}</a>
                    </div>
                    <div class="d-vodnews-info">
                        <h2><a href="{$zanpian.news_readurl}" title="{$zanpian.news_name}">{$zanpian.news_name|get_hilight_ex=$search_wd,'font','#f06000'}</a></h2>
                        <p>{$zanpian.news_remark|msubstr=0,120}...</p>
                    </div>
                    <div class="d-source"><span>{$zanpian.news_addtime|date='Y-m-d H:i:s',###}</span></div>
                </li>
                {/volist}
            </ul>
            <div class="uipages pages mt20">
                <ul class="pagination">
                    <span class="total">共{$list_news.0.page.pagecount}条数据&nbsp;页次:{$list_news.0.page.currentpage}/{$list_news.0.page.totalpage}页</span>
                    {$list_news.0.page.pageurl}
                </ul>
            </div>
        </div>
        {/notempty}
        {notempty name="list_star"}
        <div class="d-searchbox" id="starlist">
            <ul class="d-vod-list">
                {volist name="list_star" id="zanpian"}
                <li>
                    <a href="{$zanpian.star_readurl}" title="{$zanpian.star_name}"><img class="loading" src="{$apicss}skin/img/blank.png" data-original="{$zanpian.star_picurl}" /></a>
                    <div class="info">
                        <h2><a href="{$zanpian.star_readurl}" target="_blank">{$zanpian.star_name|get_hilight_ex=$search_wd,'font','#ff6a1f'}</a></h2>
                        <p class="type fl"><em>中文名:</em>{$zanpian.star_name}</p>
                        <p class="type fr"><em>出生地:</em>{empty name='zanpian.star_csd'}不详{else/}{$zanpian.star_csd}{/empty}</p>
                        <p class="type fl"><em>性别:</em>{empty name='zanpian.star_xb'}未知{else/}{$zanpian.star_xb}{/empty}</p>
                        <p class="type fr"><em>职业:</em>{empty name='zanpian.star_zy'}不详{else/}{$zanpian.star_zy}{/empty}</p>
                        <p class="type fl"><em>身高:</em>{empty name='zanpian.star_sg'}不详{else/}{$zanpian.star_sg}{/empty}</p>
                        <p class="type fr"><em>国籍:</em>{empty name='zanpian.star_area'}不详{else/}{$zanpian.star_area}{/empty}</p>
                        <p class="type fl"><em>星座:</em>{empty name='zanpian.star_xz'}不详{else/}{$zanpian.star_xz}{/empty}</p>
                        <p class="type fr"><em>血型:</em>{empty name='zanpian.star_xx'}不详{else/}{$zanpian.star_xx}{/empty}</p>
                        <p class="plot"><em>介绍:</em>{empty name='zanpian.star_content'}暂未添加{else/}{$zanpian.star_content|msubstr=0,110,'...'}{/empty}</p>
                    </div>
                </li>
                {/volist}
            </ul>
            <div class="uipages pages mt20">
                <ul class="pagination">
                    <span class="total">共{$list_star.0.page.pagecount}条数据&nbsp;页次:{$list_star.0.page.currentpage}/{$list_star.0.page.totalpage}页</span>
                    {$list_star.0.page.pageurl}
                </ul>
            </div>
        </div>
        {/notempty}
    </div>
</div>
{include file="zp_footer" /}
<script>
    $(function(){
        var nav = $('.filter-type');
        var box = $('.d-search-list');
        var tabNav = localStorage.tabNav
        var tabCount = localStorage.tabCount
        tabNav ? box.find('#' + tabNav).show() : box.find('.d-searchbox').eq(0).show();
        tabNav ? nav.find('#' + tabNav).addClass('on') : nav.find('a').eq(0).addClass('on');
        tabCount && $('#counts').html(tabCount);
        nav.find('a').click(function(){
            nav.find('a').removeClass('on');
            box.find('.d-searchbox').hide();
            box.find('#' + $(this).attr('id')).show();
            $(this).addClass('on')
            $('#counts').html($(this).find('span').text());
            //调用图片延时加载
            $(".loading").scrollLoading();
            localStorage.tabNav = $(this).attr('id');
            localStorage.tabCount = $(this).find('span').text();
            localStorage.searchUrl = window.location.href
        })
    })
</script>
</body>
</html>